@import "./editor/code.css";
nav {
  //width: 100%;
  height: 60px;
  width: calc(100% - 240px);
  //取light.css中的变量
  //background-color: var(--nav_bg);
  display: flex;
  //垂直居中
  align-items: center;
  padding: 0 120px;
  //固定定位
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transition: all 0.3s;

  .left {
    width: 60%;
  }

  .right {
    width: 40%;
    display: flex;
    //将内容往右边排版
    justify-content: right;

    img {
      width: 20px;
      height: 20px;
      margin-right: 20px;
      cursor: pointer;

    }

    .el-dropdown-link {
      color: white;
      cursor: pointer;

    }
  }

  a {
    margin-right: 20px;
    color: var(--card_bg);
    //让最后一个a的右边距重置为0
    &:last-child {
      margin-right: 0;
    }
  }

  a.active {
    color: var(--active);
  }
}

nav.show {
  background-color: var(--card_bg);
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);

  a {
    color: var(--font_1);
  }

  a.active {
    color: var(--active);
  }

  .el-dropdown-link {
    color: var(--font_1);
  }
}

.my_header {
  width: 100%;
  height: 700px;
  position: relative;

  .title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    color: white;

    h1 {
      font-size: 30px;
      font-weight: 400;
      text-align: center;
      margin-bottom: 10px;
    }

    p {
      font-size: 18px;
      text-align: center;

    }

  }

  > .dynamic_shutffl {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: all 1s;
    opacity: 0;

    &:first-child {
      opacity: 1;
    }

    img {
      width: 100%;
      height: 700px;
      object-fit: cover;
    }
  }

}

main {
  width: calc(100% - 240px);
  padding: 20px 120px;
  min-height: 600px;
  background-color: var(--bg);
  color: var(--font_1);
  display: flex;
  justify-content: center;


  .el-scrollbar__wrap {
    overflow-x: hidden !important;
  }

  .el-textarea__inner {
    color: var(--font_2);
    background-color: var(--ele_bg);
    border: 1px solid var(--bg_darken);
  }

  .el-textarea__inner::-webkit-input-placeholder {
    color: var(--ele_placeholder);
  }

  .el-textarea__inner:-ms-input-placeholder {
    color: var(--ele_placeholder);
  }

  .el-textarea__inner::-ms-input-placeholder {
    color: var(--ele_placeholder);
  }

  .el-textarea__inner::placeholder {
    color: var(--ele_placeholder);
  }


  .el-input__inner {
    background-color: var(--ele_bg);
    border: 1px solid var(--ele_placeholder);
    color: var(--ele_placeholder);
  }

  .el-input__prefix, .el-input__suffix {
    color: var(--ele_placeholder);
  }

  .el-input__inner::-webkit-input-placeholder {
    color: var(--ele_placeholder);
  }

  .el-input__inner:-ms-input-placeholder {
    color: var(--ele_placeholder);
  }

  .el-input__inner::-ms-input-placeholder {
    color: var(--ele_placeholder);
  }

  .el-input__inner:hover {
    color: var(--ele_placeholder);
  }

  .el-input__inner::placeholder {
    color: var(--ele_placeholder);
  }


}

footer {
  width: 100%;
  display: flex;
  font-size: 14px;
  height: 180px;
  background-color: var(--card_bg);
  color: var(--footer_color);

  .left, .right {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .thank {
    color: #26c6e1;
    font-size: 20px;
  }

  .sit_info {
    img {
      width: 20px;
      margin-right: 8px;
    }

    display: flex;
    align-items: center;

    span {
      margin-right: 10px;
      display: flex;
      align-items: center;
    }
  }

  .version {
    display: flex;
    color: white;

    span {
      display: flex;
      justify-content: center;
      align-items: center;
      color: white;
      height: 30px;
      width: 60px;
      background-color: #333333;

      &:nth-child(1) {
        background-color: #ff9800;
        border-radius: 5px 0 0 5px;
      }

      &:nth-child(2) {
        background-color: #26c6da;
        border-radius: 0 5px 5px 0;

      }
    }
  }

  .beian {
    a {
      display: flex;
      align-items: center;
    }
  }

  p {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--font_1);
  }

  .contact {
    display: flex;
    justify-content: space-between;
    width: 200px;

    > div {
      position: relative;

      .qq {
        width: 80px;
        position: absolute;
        top: -20px;
        left: -18px;
        transition: all 0.4s;
        opacity: 0;
      }
    }

    .svg {
      width: 40px;
      cursor: pointer;
      position: relative;
      z-index: 1;

      &:hover {
        & ~ .qq {
          top: -83px;
          left: -18px;
          opacity: 1;
        }
      }
    }

  }
}


.el-dropdown-menu {
  a {
    color: var(--font_1);
  }
}


nav .search {
  display: inline-flex;

  input {
    width: 0;
    height: 40px;
    border: none;
    outline: none;
    transition: all 0.3s;
    padding: 0;
  }

  button {
    color: var(--card_bg);
    border: none;
    background-color: transparent;
    transition: all 0.3s;
    cursor: pointer;
  }
}

nav.show .search {
  button {
    color: var(--font_1);
  }
}

nav .show_search {
  input {
    width: 200px;
    border-radius: 5px 0 0 5px;
    padding-left: 10px;
    background-color: rgba(var(--card_bg), 0.5);
  }

  button {
    width: 40px;
    background-color: white;
    border-radius: 0 5px 5px 0;
    background-color: rgba(white, 0.5);
    color: var(--font_1);
  }
}

nav.show .show_search {
  input {
    border: 1px solid var(--bg);

  }

  button {
    border-color: var(--bg);
    border-style: solid;
    border-width: 1px 1px 1px 0;
  }
}

textarea.drawing {
    width: 100%;
    resize: none;
    border: 1px solid var(--bg_darken);
    background-color: var(--ele_bg);
    outline: none;
    border-radius: 5px;
    box-sizing: border-box;
    padding: 5px 15px;
    color: #606266;
    font-size: 14px;
    transition: all 0.3s;

    &::-webkit-input-placeholder {
      color: var(--ele_placeholder);
    }

    &:-ms-input-placeholder {
      color:var(--ele_placeholder) ;
    }

    &::-ms-input-placeholder {
      color: var(--ele_placeholder);
    }

    &::placeholder {
      color:var(--ele_placeholder) ;
    }

    &:hover {
      border-color:var(--ele_placeholder) ;
    }

    &:focus {
      border-color: var(--ele_placeholder);
    }
  }




 .el-scrollbar__wrap {
    overflow-x: hidden !important;
  }



 .el-dialog__header{
   background-color: var(--card_bg);
   .el-dialog__title{
     color: var(--font_1);
   }
 }

 .el-dialog__footer{
   background-color: var(--card_bg);
 }


.el-dialog__body{
   background-color: var(--card_bg);
 }

